//Manager.java
package decorator.sample;
import java.util.*;

/**
 *@author:youtubezou
 *@version:2012-7-1n8
 */
public class Manager {
	private Vector<Man> interviewees = new Vector<Man>();
	private String name = "BaiduCEO";
	
	public static void main(String[] args) {
		Manager mgr = new Manager();
		
		Man babyTom = new Tom();
		Man swimmerTom = new Swimmer(babyTom);
		Man runnerTom = new Runner(babyTom);
		
		mgr.interview(babyTom);
		mgr.interview(swimmerTom);
		mgr.interview(runnerTom);
	}
	
	public void interview(Man man){
		man.move();
		interviewees.add(man);
	}
	
	public String toString(){
		return name;
	}

}
